//
//  AuthorModel.swift
//  OnceNectar
//
//  Created by yanghao on 14/05/2018.
//  Copyright © 2018 com.inwhoop. All rights reserved.
//

import Foundation
import MappingAce

struct AuthorModel:Mapping {
    var birthday :String?
    var headIcon :String?
    var concernsAmount :String?
    var score :String?
    var constellation :String?
    var sexy :String?
    var fansAmount :String?
    var nickname :String?
    var id :String?
    var age :String?
    var username :String?
    var matchDegree :String?
    var concernType :String?
    var type :String?
    var grade :GradeModel?
}

extension AuthorModel{
    
    mutating func initGrade(dic:[String:Any]) {
        grade = GradeModel(fromDic: dic)
    }
}
